import { createApp } from 'vue'

import { globalRegister } from './global'
// 重置样式
import 'normalize.css'
// 自定义样式
import './assets/css/index.less'

// 引入阿里巴巴矢量图库
import './assets/css/icon/iconfont.css'

import App from './App.vue'

import router from './router'
import store from './store'
import { setupStore } from './store'

const app = createApp(App)

//注册element组件 挂载全局方法
app.use(globalRegister)
app.use(store)
// 先初始化store 注册完路由之后在跳转
// 初始化store
setupStore()
app.use(router)

app.mount('#app')
